<template>
    这是{{ userId }}
    <RouterView></RouterView>
</template>
<script setup>
import { useRoute } from 'vue-router';
const route = useRoute()
const userId= route.params.id
</script>